//package org.activoricordi.app
package edu.ucdavis.fiehnlab.alchemy.alchemyAdmin{
package snippet {

import _root_.scala.xml.{NodeSeq, Text}
//import _root_.net.liftweb.util._
import _root_.net.liftweb.common._
import _root_.java.util.Date

import edu.ucdavis.fiehnlab.alchemy.alchemyAdmin.lib._

import net.liftweb._
import http._
 import util.Helpers
import util.Helpers._
import net.liftweb.http.SHtml._



class HelloWorld {

  lazy val date: Box[Date] = DependencyFactory.inject[Date] // inject the date



  def howdy(in: NodeSeq): NodeSeq =
  Helpers.bind("b", in, "time" -> date.map(d => Text(d.toString)))

  /*
   lazy val date: Date = DependencyFactory.time.vend // create the date via factory

   def howdy(in: NodeSeq): NodeSeq = Helpers.bind("b", in, "time" -> date.toString)
   */
}


}
}
